<?php 
	/*
	$promotions['catalog_rules'] : all catalog rules
	$promotions['cart_rules'] : all cart rules
	*/
	$promotions = $this->getAllPromotions();	
	// var_dump($promotions['cart_rules']->getFirstItem())
?>
<div class="entry-edit">
	<div class="entry-edit-head">
		<h4 class="icon-head head-edit-form fieldset-legend">Promotions</h4>
	</div>
	<fieldset>
		<div class="grid">
			<table width="100%" cellspacing="0" class="data" id="promotions" name="promotions">
				<colgroup>
					<col width="100">
					<col>
				</colgroup>
				<thead>										
				</thead>
				<tbody>
					<tr align="center">
						<td class="promotion-title last" colspan="2">
							<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('pos-promo-header')->toHtml() ?>
						</td>											
					</tr>
		<?php if($promotions):?>
			<?php foreach($promotions as $promotionType):?>
				<?php foreach($promotionType as $promotion):?>
					<tr>
						<td><?php echo $promotion->getName()?></td>
						<td class="last"><?php echo $promotion->getDescription()?></td>
					</tr>	
				<?php endforeach;?>
			<?php endforeach;?>
		<?php else:?>
		
		<?php endif;?>
									
				</tbody>
			</table>
		</div>							
	</fieldset>
</div>
<script>
	decorateTable('promotions');
</script>